<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文章详情</title>
    <link th:include="fragment/import :: import">
    <style>
        body{
            padding: 0px;
            margin: 0px;
        }
        .detail-body{
            width: 100%;
        }
        .detail-title{
            width: 100%;
            text-align: center;
            font-size: 16px;
            color: black;
            height: 45px;
            line-height: 45px;
            border-bottom: 1px solid lightgray;
        }
        .detail-info{
            width: 100%;
            height: 30px;
            font-size: 14px;
            color: gray;
            line-height: 30px;
            text-align: center;
        }
        .clear{
            clear:both;
        }
        .detail-writer{
            height: 100%;
            float: left;
            padding: 0px 5px;
        }
        .detail-time{
            height: 100%;
            float: left;
            padding: 0px 5px;
        }
        .detail-content{
            width: 100%;
            height: auto;
            font-size: 14px;
            color: black;
            font-family: 'Adobe 仿宋 Std R',sans-serif;
            padding: 10px;
        }
    </style>
</head>
<body>
    <div class="detail-body" th:object="${article}">
        <div class="detail-title" th:text="*{title}"></div>
        <div class="detail-info">
            <div class="detail-writer">作者：<span th:text="*{witter}"></span></div>
            <div class="detail-time">发布时间：<span th:text="*{time}"></span></div>
            <div class="clear"></div>
        </div>
        <div class="detail-content" th:text="*{content}">
            内容
        </div>
    </div>
</body>
</html>